package com.qmth.gkwb.api;

public class ApiRes {

	private boolean result = true;
	private int status = 200;
	private String message;
	private String error;
	
	private Object data;
	
	public ApiRes(int status,String error){
		this.status = status;
		this.error = error;
		this.result = false;
	}
	
	public ApiRes(String message){
		this.message = message;
	}
	
	public ApiRes(){}

	public boolean isResult() {
		return result;
	}

	public void setResult(boolean result) {
		this.result = result;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getError() {
		return error;
	}

	public void setError(String error) {
		this.error = error;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}
	
	
}
